/*
 * Copyright (c) TD-Tech Technologies Co., Ltd. 2024-2024. All rights reserved.
 */
//import tddevmanager from '@ohos.mdm.td_devicemanager';
import { LogHelper,LogDomain } from './LogHelper';

const TAG = "TdMdmPolicyUtils";
const logHelper: LogHelper = LogHelper.getLogHelper(LogDomain.TdSM_DevicePolicy, TAG);
export class TdMdmPolicyUtils {

  public static getTdPolicyByNameDefault(policyName:string, defaultValue:string) {
    /*try{
      let policyValue:string = tddevmanager.getTdPolicyByName(policyName);
      if (policyValue === '') {
        logHelper.showInfo(`getTdPolicyByNameDefault, policyName:` + policyName+` is null, return defaultValue:` + defaultValue);
        return defaultValue;
      }
      logHelper.showInfo(`getTdPolicyByNameDefault, policyName:` + policyName+` , policyValue:` + policyValue);
      return policyValue;
    } catch (err) {
      logHelper.showError(`${TAG} getTdPolicyByNameDefault policyName : ${policyName} failed:  ${err?.message}`);
      return defaultValue;
    }*/
  }

}